﻿using System;
using System.IO;

namespace XmlDatabase.Core
{
    internal static class TextWriterExtensions
    {
        public static void WriteEx(this TextWriter writer, String value, Boolean quickFlush)
        {
            writer.WriteLine(value);
            if (quickFlush)
            {
                writer.Flush();
            }
        }
        public static void WriteEx(this TextWriter writer, String value)
        {
            writer.WriteEx(value, false);
        }
    }
}
